package com.itheima.project.constant.security;

import com.itheima.project.constant.CacheConstant;

/**
 * @ClassName CustomerCacheConstant.java
 * @Description 客户账户缓存常量
 */
public class CustomerCacheConstant extends CacheConstant {

    //缓存父包
    public static final String PREFIX= "customer:";

    //缓存基础对象key
    public static final String BASIC= PREFIX+"basic";

    //分布式锁前缀
    public static final String LOCK_PREFIX = PREFIX+"lock:";

    //登录
    public static final String LOGIN_PREFIX = PREFIX+"login:";

    //page分页
    public static final String PAGE= PREFIX+"page";

    //角色
    public static final String ROLES= PREFIX+"roles";

    //资源
    public static final String RESOURCES= PREFIX+"resources";

    //账号登录
    public static final String USERNAME= LOGIN_PREFIX+"username";

    //手机登录
    public static final String MOBILE= LOGIN_PREFIX+"mobile";

    //微信登录
    public static final String WECHAT= LOGIN_PREFIX+"wechat";

    //获得所有不重复的客户集合
    public static final String LIST= PREFIX+"list";
}
